Skip to main content
POST
Change one site — its name, address, city, coordinates (`latitude` and `longitude`), `timezone` (an IANA name such as…

Headers

Prefer
enum<string>

Preference

Available options:
params=single-object

Body

Change one site — its name, address, city, coordinates (latitude and longitude), timezone (an IANA name such as Asia/Tashkent) or whether it is_active — and answer its custom fields, with the same permission, rules and history as the Site screen. p_values holds only the fields to change, keyed by field name; p_custom_fields holds answers keyed by field key. A site's code is fixed once it exists and is refused here.

p_row_version, when sent, refuses the change if somebody else saved the site first. Reference fields such as country_id take an id, which list_options finds by name.

p_site_id
string<uuid>
required
p_values
object
required

The fields to change. Send only those; everything else is left as it is.

p_custom_fields
string<jsonb>
p_reason
string<text>
p_row_version
integer<integer>

Response

200

OK